package com.ruoyi.project.wechatprogram.site.sys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.wechatprogram.site.sys.mapper.WebConfigMapper;
import com.ruoyi.project.wechatprogram.site.sys.domain.WebConfig;
import com.ruoyi.project.wechatprogram.site.sys.service.IWebConfigService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 账户配置Service业务层处理
 *
 * @author ruoyi
 * @date 2020-04-07
 */
@Service
public class WebConfigServiceImpl implements IWebConfigService
{
    @Autowired(required = false)
    private WebConfigMapper WebConfigMapper;

    /**
     * 查询账户配置
     *
     * @param id 账户配置ID
     * @return 账户配置
     */
    @Override
    public WebConfig selectWebConfigById(Long id)
    {
        return WebConfigMapper.selectWebConfigById(id);
    }

    /**
     * 查询账户配置列表
     *
     * @param WebConfig 账户配置
     * @return 账户配置
     */
    @Override
    public List<WebConfig> selectWebConfigList(WebConfig WebConfig)
    {
        return WebConfigMapper.selectWebConfigList(WebConfig);
    }

    /**
     * 新增账户配置
     *
     * @param WebConfig 账户配置
     * @return 结果
     */
    @Override
    public int insertWebConfig(WebConfig WebConfig)
    {
        return WebConfigMapper.insertWebConfig(WebConfig);
    }

    /**
     * 修改账户配置
     *
     * @param WebConfig 账户配置
     * @return 结果
     */
    @Override
    public int updateWebConfig(WebConfig WebConfig)
    {
        return WebConfigMapper.updateWebConfig(WebConfig);
    }

    /**
     * 删除账户配置对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWebConfigByIds(String ids)
    {
        return WebConfigMapper.deleteWebConfigByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除账户配置信息
     *
     * @param id 账户配置ID
     * @return 结果
     */
    @Override
    public int deleteWebConfigById(Long id)
    {
        return WebConfigMapper.deleteWebConfigById(id);
    }
}
